﻿using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WMS.Model;

namespace WMS.Service.IService
{
    public interface IAvatarService
    {
        /// <summary>
        /// 上传用户头像
        /// </summary>
        Task<AvatarUploadResult> UploadUserAvatarAsync(string userCode, IFormFile file);


        /// <summary>
        /// 根据用户编码获取头像URL
        /// </summary>
        Task<string> GetAvatarUrlByUserCodeAsync(string userCode);

        /// <summary>
        /// 批量获取用户头像URL
        /// </summary>
        Task<Dictionary<string, string>> GetAvatarUrlsByUserCodesAsync(List<string> userCodes);

        Task ClearAvatarCacheAsync(string userCode);
    }
}
